package forms

// 绑定为json
type RegisterUserForm struct {
	Mobile   string `form:"mobile" json:"mobile" xml:"mobile" binding:"required"`
	Password string `form:"password" json:"password" xml:"password" binding:"required"`
	NickName string `form:"nickname" json:"nickname" xml:"nickname" binding:"required"`
}

// 登录的表单验证
type LoginUserForm struct {
	Mobile    string `form:"mobile" json:"mobile" xml:"mobile" binding:"required"`
	Password  string `form:"password" json:"password" xml:"password" binding:"required"`
	CaptchaId string `form:"captcha_id" json:"captcha_id" xml:"captcha_id" binding:"required"`
	Captcha   string `form:"captcha" json:"captcha" xml:"captcha" binding:"required"`
}
